Previous Book Contents Book Index Next

Inside Macintosh: Open Transport /
Chapter 3 - Endpoints / Endpoints Reference
Constants and Data Types


Endpoint Flags

Open Transport uses the flags field of the TEndpointInfo structure (page 3-48) to specify additional information about the endpoint. The constant names that Open Transport can return for this field are given by the endpoint flags enumeration:

enum {
      T_SENDZERO        = 0x001,
      T_XPG4_1          = 0x002,
      T_CAN_SUPPORT_MDATA= 0x10000000,
      T_CAN_RESOLVE_ADDR= 0x40000000,
      T_CAN_SUPPLY_MIB  = 0x20000000
};
Constant descriptions

T_SENDZERO
This endpoint lets you send and receive zero-length TSDUs.
T_XPG4_1
This endpoint supports the OTGetProtAddress function.
T_CAN_SUPPORT_MDATA
This endpoint supports M_DATA, that is, it permits sending raw packets. This is Streams-specific and is found in the mistreams.h header file. When you send such a packet, set the packet's addr.buf field to a null value and set its addr.len field to -1. This indicates that the data portion of the TUnitData structure already has the header information in it.
T_CAN_RESOLVE_ADDR
This endpoint supports the OTResolveAddress function.
T_CAN_SUPPLY_MIB
This endpoint can supply the Management Information Base (MIB) data used by the Simple Network Management Protocol (SNMP).

Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 AUG 1996